<template>
  <div>
    我是子组件----{{ info }}
    <button @click="that.num++">修改父组件 的num</button>
    <button @click="fn('123')">调用父组件 的fn</button>

  </div>
</template>
<script>
export default {
  inject: {
    info: {
      type: String
    },
    that: {
      type: Object
    },
    fn: {
      type: Function
    }
  }

}
</script>
  <style>
  </style>

